package com.goudan.demo.common.errorCode;

public class BizException extends RuntimeException {

    /**
     * 异常码
     */
    private String code;


    public BizException(String code, String msg) {
        super(msg);
        this.code = code;
    }

    public BizException(String code, String msg, Exception cause) {
        super(msg, cause);
        this.code = code;
    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
